package com.ruoyi.law.domain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.domain.SortBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 *
 * </p>
 *
 * @author code
 * @since 2022-12-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "LawBanner对象", description = "轮播图")
public class LawBanner extends SortBaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private Long id;

    @ApiModelProperty(value = "轮播图片")
    private String pic;

    @ApiModelProperty(value = "跳转类型(1.新闻，2.咨询，3.服务，4.律师详情)")
    private String linkType;

    @NotBlank(message = "轮播类型不能为空")
    @ApiModelProperty(value = "轮播类型(1.新闻，2.首页)")
    private String bannerType;

    @ApiModelProperty(value = "跳转id")
    private Long linkId;

    @ApiModelProperty(value = "状态")
    private String state;

}
